﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for CarOccupationType
/// </summary>
/// 
namespace CE.Provider
{
    public class CarOccupationType
    {
        private Int64 _caroccupationtypeid;
        private Int64 _providercompanyId;
        private Int32 _typeid;
        private string _description;
        private int _code;
        private float _occupationtyperate;

        //common field name
        private Int64 _refceuserid;
        private bool _status;
        private DateTime _createddate;
        private DateTime _modifieddate;
        private float _finfo1; //new rate
        private DateTime _dinfo1;//effectivity date

        public CarOccupationType()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 CarOccupationTypeId
        {
            get { return _caroccupationtypeid; }
            set { _caroccupationtypeid = value; }
        }

        public Int64 ProviderCompanyId
        {
            get { return _providercompanyId; }
            set { _providercompanyId = value; }
        }

        public Int32 TypeId
        {
            get { return _typeid; }
            set { _typeid = value; }
        }

        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        public int Code
        {
            get { return _code; }
            set { _code = value; }
        }

        public float OccupationTypeRate
        {
            get { return _occupationtyperate; }
            set { _occupationtyperate = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public float FInfo1
        {
            get { return _finfo1; }
            set { _finfo1 = value; }
        }

        public DateTime DInfo1
        {
            get { return _dinfo1; }
            set { _dinfo1 = value; }
        }

        public void ClearFields()
        {
            _caroccupationtypeid = 0;
            _providercompanyId = 0;
            _typeid = 0;
            _description = "";
            _code = 0;
            _occupationtyperate = 0.0f;

            //common field name
            _status = false;
            _createddate = new DateTime();
            _modifieddate = new DateTime();
            _finfo1 = 0.0f;
            _dinfo1 = new DateTime();

        }
    }
}